package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the DELIVERRECORD database table.
 * 
 */
@Entity
@NamedQuery(name="Deliverrecord.findAll", query="SELECT d FROM Deliverrecord d")
public class Deliverrecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="DELIVERRECORD_DRID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DELIVERRECORD_DRID_GENERATOR")
	@Column(name="DR_ID")
	private long drId;

	@Temporal(TemporalType.DATE)
	@Column(name="DR_DATE")
	@JSONField(format="yyyy-MM-dd")
	private Date drDate;

	@Column(name="DR_NUM")
	private BigDecimal drNum;

	@Column(name="DR_PRICE")
	private BigDecimal drPrice;

	@Column(name="DR_RECEIVE")
	private String drReceive;

	@Column(name="DR_REMARK")
	private String drRemark;

	//bi-directional many-to-one association to Deliver
	@ManyToOne
	@JoinColumn(name="DE_ID")
	private Deliver deliver;

	public Deliverrecord() {
	}

	public long getDrId() {
		return this.drId;
	}

	public void setDrId(long drId) {
		this.drId = drId;
	}

	public Date getDrDate() {
		return this.drDate;
	}

	public void setDrDate(Date drDate) {
		this.drDate = drDate;
	}

	public BigDecimal getDrNum() {
		return this.drNum;
	}

	public void setDrNum(BigDecimal drNum) {
		this.drNum = drNum;
	}

	public BigDecimal getDrPrice() {
		return this.drPrice;
	}

	public void setDrPrice(BigDecimal drPrice) {
		this.drPrice = drPrice;
	}

	public String getDrReceive() {
		return this.drReceive;
	}

	public void setDrReceive(String drReceive) {
		this.drReceive = drReceive;
	}

	public String getDrRemark() {
		return this.drRemark;
	}

	public void setDrRemark(String drRemark) {
		this.drRemark = drRemark;
	}

	public Deliver getDeliver() {
		return this.deliver;
	}

	public void setDeliver(Deliver deliver) {
		this.deliver = deliver;
	}

}